********************************************************
* Appendix figures - Dataset properties and validation *
********************************************************
 set scheme lean2 


use "Temp/Master.dta" , clear

   drop if year<1900
   
   drop if expansion==1


		*** Data coverage

		egen coverage_year_real_data =    count(ordinary_real), by(year)
		egen coverage_year_nominal =    count(DIRECT_NOMINAL), by(year)


			line coverage_year_real_data  year if iso=="AGO" || 	line coverage_year_nominal year if iso=="AGO",      graphregion(color(white))  bgcolor(white)  bgcolor(white)  ytitle("Polities Covered") xtitle("Year" ) yla(,nogrid)   ylabel(0(5)40)        xlabel(1900(10)2020)   legend( label(1 "Real") label(2 "Nominal") pos(5) ring(0) region(lcolor(white)))
		 	
			graph export "Output/Graphs/Appendix/APP_FIG_2_1.pdf" , replace

 	
	
